package com.lengchangjing.BehavioralPatterns.StatePattern;

public class ConcreteStateB implements State {
    @Override
    public void handle(Context context) {
        System.out.println("current state is ConcreteStateB");
        context.setState(new ConcreteStateA());
    }
}
